'''
作业2：
例如输入abc1ab，输出{'a': 2, 'b': 2, 'c': 1, '1': 1}。
'''

# 用户输入字符串
userStr=input('请输入字符串：')
# userStr = 'aabbccddd123124'

zimu = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
shuzi = '0123456789'

zimuCount = 0
shuziCount = 0

listUsertr = list(userStr)
for i in listUsertr:
    # 是字母
    if i in zimu:
        zimuCount += 1
        # print('字母：',i)
    elif i in shuzi:
    # print('数字：',i)
        shuziCount += 1
result={'字母数':zimuCount,'数字数':shuziCount}
print(result)